	<h1><?php echo $this->title ?></h1>
	<?php echo !empty($errors) ? '<p>' . implode('<br />', $errors) . '</p>' : NULL ?>
	<form method="post" action="" enctype="multipart/form-data">
		<table class="t-data t-data-edit">
			<thead>
				<tr class="tr-titles">
					<td class="td-row-title">Параметры</td>
					<td>Значения</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>Группа</td>
					<td>
						<input type="text" class="i-text i-text-date" name="group" value="<?php echo !empty($data['group']) ? $data['group'] : NULL ?>" />
						<select onchange="this.form.group.value=this.value">
<?php foreach ($groups as $group): ?>
							<option value="<?php echo $group ?>"><?php echo $group ?></option>
<?php endforeach ?>
						</select>
					</td>
				</tr>
				<tr>
					<td>Название</td>
					<td>
						<input type="text" class="i-text i-text-date" name="name" value="<?php echo !empty($data['name']) ? $data['name'] : NULL ?>" />
						<small>необязательно, только английские буквы в нижнем регистре</small>
					</td>
				</tr>
				<tr>
					<td>Файл:</td>
					<td>
						<input type="file" name="file_upload" value="" />
					</td>
				</tr>
				<tr class="tr-dark">
					<td>Из интернета:</td>
					<td>
						<?php echo !empty($errors['file_download']) ? $errors['file_download'] : NULL ?>
						<input type="text" class="i-text" name="file_download" value="<?php echo !empty($data->file_download) ? $data->file_download : NULL ?>" />
					</td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td class="td-row-title">
						<a href="<?php echo $this->name ?>/">&lt;&lt;&lt; Назад</a>
					</td>
					<td>
						<input type="submit" class="i-submit" value="Добавить" />
					</td>
				</tr>
			</tfoot>
		</table>
	</form>